<?php /* Smarty version 2.6.26, created on 2012-12-19 11:44:23
         compiled from admin_index.htm */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>测评系统</title>
<style type="text/css" >
.div {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}
.divnei {
    width: 99.5%;
    height: 99%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}
.box {
    display: inline-block;
    width: 243px;
    height: 50px;
}
.box2 {
    background: transparent url(../images/mainpagelogo.jpg) no-repeat scroll left top !important;
    background: none;
    _filter: progid : DXImageTransform.Microsoft.AlphaImageLoader (src = '../images/mainpagelogo.png', sizingMethod = 'scale');
}
li{
	cursor:pointer;
	text-align: left;
	padding-top : 4px;
	padding-left : 20px;
	border:1px;
	list-style-type:none;
    background: transparent url(../images/bgt.jpg) no-repeat -28px top;
    font-size: 15px;
    color: #206851;
}
table tr{
	width:100%;
	height:100%;
}
.position {
    background: url(../images/titlebg2.jpg) top repeat-x;
    border: solid 1px #92B2BF;
    line-height: 25px;
    margin-top: 5px;
    margin-left: 5px;
    margin-right: 5px;
    height: 100%;
}
</style>
<script type="text/javascript" language="javascript" src="./../js/jquery-1.8.3.js"></script>
<script type="text/javascript" charset="UTF-8">
function openframe(module){
	var html = "<iframe style='border:solid 2px #FFF;' width='99%' marginheight='0' marginwidth='0' height='99%' src='./../module/"+module+"/index.php'></iframe>";
	document.getElementById("mainframeDiv").innerHTML = html;
}
function changpwd(){
	alert("changpwd");
}
var allHeight=null;
var allWidth=null;
var frameWidth=null;
var frameHeight=null;
function setHeightTable() {
	height=document.documentElement.clientHeight;
	width=document.documentElement.clientWidth;
	allHeight=height;
	allWidth=width;
	document.getElementById("neidiv").style.height=(height-69)+"px";
	document.getElementById("panel").style.height=(height-69-14)+"px";
	document.getElementById("left").style.height=(height-69-18)+"px";
	document.getElementById("mainframeDiv").style.height=(height-69-18)+"px";
	frameHeight=$("#mainframeDiv").height();
	frameWidth=$("#mainframeDiv").width();
	document.getElementById("idContainer").style.width=(width-450)+"px";
}
function logout(){
	if (confirm('确认要退出吗?')) {
		document.location = "./../index.php";
	}
}
function help(){
	alert("寻求帮助请联系管理员");
}
</script>
</head>
<body style="width:100%; height:100%; overflow: hidden; margin: 0; padding: 0;" onload="setHeightTable()" onresize="setHeightTable()">
	<div style="height: 64px; width: 100%; position: absolute; top: 0; vertical-align: middle; left: 0; right: 0; background-image: url(../images/titlebg.jpg)">
	    <table style="vertical-align: bottom" align="left" border="0px" width="100%" height="100%" cellpadding="0" cellspacing="0">
	        <tr>
	            <td align="left" id="logo" width="243px"><span class="box box2"></span></td>
	            <td style="vertical-align: top; font-size: 12px; color: #FFFFFF; font-weight: bold;">
	                <table width="100%" cellpadding="6" cellspacing="0">
	                    <tr>
	                        <td id="currUserName"><?php echo $this->_tpl_vars['userName']; ?>
</td>
	                        <td style="cursor: pointer;" onclick="changpwd()">修改密码</td>
	                    </tr>
	                    <tr>
	                        <td colspan="2" id="currUserRegion"></td>
	                    </tr>
	                </table>
	            </td>
	            <td>
	                <div id="idContainer" style="border-style: solid; overflow: hidden; width: 500px; height: 64px; border-width: 0px; border-color: #00529E">
	                </div>
	            </td>
	            <td width="60px">
	                <table>
	                    <tr>
	                        <td><img src="../images/exit.jpg" onclick="logout()" /></td>
	                    </tr>
	                    <tr>
	                        <td><img src="../images/help.jpg" onclick="help()" /></td>
	                    </tr>
	                </table>
	            </td>
	        </tr>
	    </table>
	</div>
            
	<div align="center" id="neidiv" style="height: 88.3%; width: 99.5%; margin-top: 64px; margin-left: 3px; margin-bottom: 3px; margin-right: 3px; position: absolute; top: 0; left: 0; right: 0; background-image: url(../images/nei.jpg)">
        <div id="panel" class="position">
            <table width="100%" height="100%">
                <tr style="height:100%; ">
                    <td style="height:100%;" width="204px">
                        <div id="left" style="height:100%;border-right: solid 1px #92B2BF; margin-left: -4px; margin-top: -2px">
                        <ul style="height:100%; margin-left: 4px;margin-top: -2px;padding-left:0px;">
							<li onclick="openframe('module1')" >模版1</li>
							<li onclick="openframe('module2')" >模版2</li>
						</ul>
                        </div>
                    </td>
                    <td bgcolor="#FFFFFF">
                        <div style="margin-left: 10px; margin-right: 2px; width: 99%; height: 100%; margin-top: -2px; overflow: auto; border-left: solid 1px #92B2BF;" id="mainframeDiv"></div>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</body>
</html>